<%--
  Created by IntelliJ IDEA.
  User: 赵坚强
  Date: 2020/4/30
  Time: 9:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>学生管理系统</title>
    <link rel="shortcut icon" href="../imgs/favicon.ico"/>
    <link rel="bookmark" href="../imgs/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="../css/default.css"/>
    <link rel="stylesheet" type="text/css" href="../libs/easyui/themes/default/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="../libs/easyui/themes/icon.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src='../js/outlook2.js'></script>
    <script type="text/javascript">
        let _menus = {
            "menus": [
                <c:if test="${userType == 1 || userType == 2 || userType == 3}">
                {
                    "menuid": "2", "icon": "", "menuname": "学生信息管理",
                    "menus": [
                        {
                            "menuid": "21",
                            "menuname": "学生列表",
                            "icon": "icon-user-student",
                            "url": "../studentServlet?method=toStudentListView"
                        },
                    ]
                },
                </c:if>

                <c:if test="${userType == 1 || userType == 3}">
                {
                    "menuid": "4", "icon": "", "menuname": "班级信息管理",
                    "menus": [
                        {
                            "menuid": "42",
                            "menuname": "班级列表",
                            "icon": "icon-house",
                            "url": "../clazzServlet?method=toClazzListView"
                        }
                    ]
                },
                </c:if>

                <c:if test="${userType == 1 || userType == 3}">
                {
                    "menuid": "3", "icon": "", "menuname": "教师信息管理",
                    "menus": [
                        {
                            "menuid": "31",
                            "menuname": "教师列表",
                            "icon": "icon-user-teacher",
                            "url": "../teacherServlet?method=toTeacherListView"
                        },
                    ]
                },
                </c:if>

                <c:if test="${userType == 1 || userType == 3}">
                {
                    "menuid": "6", "icon": "", "menuname": "课程信息管理",
                    "menus": [
                        {
                            "menuid": "61",
                            "menuname": "课程列表",
                            "icon": "icon-book-open",
                            "url": "../courseServlet?method=toCourseListView"
                        },
                    ]
                },
                </c:if>

                {
                    "menuid": "7", "icon": "", "menuname": "选课信息管理",
                    "menus": [
                        {
                            "menuid": "71",
                            "menuname": "选课列表",
                            "icon": "icon-book-open",
                            "url": "../selectedCourseServlet?method=toSelectedCourseListView"
                        },
                    ]
                },
                {
                    "menuid": "8", "icon": "", "menuname": "考勤信息管理",
                    "menus": [
                        {
                            "menuid": "81",
                            "menuname": "考勤列表",
                            "icon": "icon-book-open",
                            "url": "../attendanceServlet?method=toAttendanceServletListView"
                        },
                    ]
                },

                <c:if test="${userType == 1 || userType == 2}">
                {
                    "menuid": "9", "icon": "", "menuname": "请假信息管理",
                    "menus": [
                        {
                            "menuid": "91",
                            "menuname": "请假列表",
                            "icon": "icon-book-open",
                            "url": "../leaveServlet?method=toLeaveServletListView"
                        },
                    ]
                },
                </c:if>

                {
                    "menuid": "10", "icon": "", "menuname": "成绩信息管理",
                    "menus": [
                        {
                            "menuid": "101",
                            "menuname": "成绩列表",
                            "icon": "icon-book-open",
                            "url": "../scoreServlet?method=toScoreListView"
                        },
                        <c:if test="${userType == 1 || userType == 3}">
                        {
                            "menuid": "101",
                            "menuname": "成绩统计",
                            "icon": "icon-book-open",
                            "url": "../scoreServlet?method=toScoreStatsView"
                        },
                        </c:if>
                    ]
                },
                {
                    "menuid": "5", "icon": "", "menuname": "系统管理",
                    "menus": [
                        {
                            "menuid": "51",
                            "menuname": "修改密码",
                            "icon": "icon-set",
                            "url": "../systemServlet?method=toPersonalView"
                        },
                    ]
                }
            ]
        };


    </script>

</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<noscript>
    <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
        <img src="images/noscript.gif" alt='抱歉，请开启脚本支持！'/>
    </div>
</noscript>
<%--从background中删除url(images/layout-browser-hd-bg.gif)--%>
<div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
        background:  #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
    <span style="float:right; padding-right:20px;" class="head"><span style="color:red; font-weight:bold;">${user.name}&nbsp;</span>您好&nbsp;&nbsp;&nbsp;<a
            href="../loginServlet?method=logout" id="loginOut">安全退出</a></span>
    <span style="padding-left:10px; font-size: 16px; ">学生管理系统</span>
</div>
<div region="west" hide="true" split="true" title="导航菜单" style="width:180px;" id="west">
    <div id="nav" class="easyui-accordion" fit="true" border="false">
        <!--  导航内容 -->
    </div>

</div>
<div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
    <div id="tabs" class="easyui-tabs" fit="true" border="false">
        <jsp:include page="welcome.jsp"/>
    </div>
</div>

<%--<iframe width=0 height=0 src="refresh.jsp"></iframe>--%>

</body>
</html>
